package com.cat.model.common.enumerator;

public enum SubjectType {
	Model("model", "模特预约"),
	Extend("extend", "模特加时"),
	Photographer("photographer", "摄影师预约"),
	Makeup("makeup", "化妆师预约"),
	Dressup("dressup", "服装搭配预约"),
	Graphics("graphics", "修图预约"),
	;
	
	private String value;
	private String valueCn;
	
	private SubjectType(String value, String valueCn) {
		this.value = value;
		this.valueCn = valueCn;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getValueCn() {
		return valueCn;
	}

	public void setValueCn(String valueCn) {
		this.valueCn = valueCn;
	}
	
	public static String getName(String value) {
		if (value == null) {
			return "";
		}
		for (SubjectType enumObj : SubjectType.values()) {
			if (value.equals(enumObj.getValue())) {
				return enumObj.getValueCn();
			}
		}
		return "";
	}
}
